﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using nplJobsCommon;
using nplJobsBLL.ProcessJobSeeker;
using nplJobsBLL.Common;
using nplJobsBLL.ProcessJob;
using nplJobsBLL.ProcessEmployeer;
public partial class JobSeeker_JobSeekerSavedJobs : System.Web.UI.Page
{
    string Sort_Direction = "JobTitle ASC";

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            try
            {
                ViewState["SortExpr"] = Sort_Direction;

                LoadData();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        else
        {

        }
    }


    private void LoadData()
    {
        //string CategoryID = Request.Params["cId"] != null ? Request.Params["cId"].ToString() : "-1";
        int userID = 1;
        JobListDetails obj = new JobListDetails();

        List<JobListDetails> lst = new List<JobListDetails>();
        lst = new ProcessJobListDetails().GetSavedJobListDetails(userID);

        gvJobList.DataSource = lst;
        gvJobList.DataBind();
    }

    protected void btnSearch_Click(object sender, EventArgs e)
    {
        LoadData();
    }

    protected void PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        //gvJobList.PageIndex = e.NewPageIndex;
        //DataView dvEmployee = Getdata();
        //gvJobList.DataSource = dvEmployee;
        //gvJobList.DataBind();
    }
}